package org.csu.goodpartner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;

@Data
@TableName("item")
public class Item {
    @TableId(value = "itemid",type = IdType.AUTO)
    private int itemid;
    @TableField(value="category")
    //大类
    private String category;
    @TableField(value="name")
    //商品名称
    private String name;
    @TableField(value="description")
    //商品描述
    private String description;
    @TableField(value="shopid")
    //商品所属店铺
    private int shopid;
    @TableField(value="classone")
    //商品所属一级分类
    private String classone;
    @TableField(value="classtwo")
    //商品所属二级分类
    private String classtwo;
    @TableField(value="listprice")
    //商品单价
    private BigDecimal listprice;
    @TableField(value="img")
    //商品图片
    private String img;
    //商品是否上架
    private int status;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getItemid() {
        return itemid;
    }

    public void setItemid(int itemid) {
        this.itemid = itemid;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getShopid() {
        return shopid;
    }

    public void setShopid(int shopid) {
        this.shopid = shopid;
    }

    public String getClassone() {
        return classone;
    }

    public void setClassone(String classone) {
        this.classone = classone;
    }

    public String getClasstwo() {
        return classtwo;
    }

    public void setClasstwo(String classtwo) {
        this.classtwo = classtwo;
    }

    public BigDecimal getListprice() {
        return listprice;
    }

    public void setListprice(BigDecimal listprice) {
        this.listprice = listprice;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
}
